<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--Rendered using the Haskell Html Library v0.2-->
<HTML
><HEAD
><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"
><TITLE
>Parsers.Version</TITLE
><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"
><SCRIPT SRC="haddock-util.js" TYPE="text/javascript"
></SCRIPT
><SCRIPT TYPE="text/javascript"
>window.onload = function () {setSynopsis("mini_Parsers-Version.html")};</SCRIPT
></HEAD
><BODY
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="topbar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "
></TD
><TD CLASS="title"
></TD
><TD CLASS="topbut"
><A HREF="index.html"
>Contents</A
></TD
><TD CLASS="topbut"
><A HREF="doc-index.html"
>Index</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="modulebar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><FONT SIZE="6"
>Parsers.Version</FONT
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Description</TD
></TR
><TR
><TD CLASS="doc"
>this parser module contains functions that allow to parse
 and compare ebuild version numbers
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Synopsis</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="#v%3Asplit_version"
>split_version</A
> :: ByteString -&gt; [<A HREF="Parsers-Version.html#t%3AVersionTok"
>VersionTok</A
>]</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3Atest_NumCharTok"
>test_NumCharTok</A
> :: <A HREF="Parsers-Version.html#t%3AVersionTok"
>VersionTok</A
> -&gt; Bool</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3Atest_Revision"
>test_Revision</A
> :: <A HREF="Parsers-Version.html#t%3AVersionTok"
>VersionTok</A
> -&gt; Bool</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3Aremove_trailing_zeros"
>remove_trailing_zeros</A
> :: [<A HREF="Parsers-Version.html#t%3AVersionTok"
>VersionTok</A
>] -&gt; [<A HREF="Parsers-Version.html#t%3AVersionTok"
>VersionTok</A
>]</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A HREF="#t%3AVersionTok"
>VersionTok</A
>  </TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
>= <A HREF="#v%3ANumTok"
>NumTok</A
> ByteString</TD
></TR
><TR
><TD CLASS="decl"
>| <A HREF="#v%3ASuffix"
>Suffix</A
> <A HREF="Parsers-Version.html#t%3ASuffixChoice"
>SuffixChoice</A
></TD
></TR
><TR
><TD CLASS="decl"
>| <A HREF="#v%3ARevision"
>Revision</A
></TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A HREF="#t%3ASuffixChoice"
>SuffixChoice</A
>  </TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
>= <A HREF="#v%3AAlpha"
>Alpha</A
></TD
></TR
><TR
><TD CLASS="decl"
>| <A HREF="#v%3ABeta"
>Beta</A
></TD
></TR
><TR
><TD CLASS="decl"
>| <A HREF="#v%3APre"
>Pre</A
></TD
></TR
><TR
><TD CLASS="decl"
>| <A HREF="#v%3ARc"
>Rc</A
></TD
></TR
><TR
><TD CLASS="decl"
>| <A HREF="#v%3AP"
>P</A
></TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Documentation</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:split_version"
><A NAME="v%3Asplit_version"
></A
></A
><B
>split_version</B
> :: ByteString -&gt; [<A HREF="Parsers-Version.html#t%3AVersionTok"
>VersionTok</A
>]</TD
></TR
><TR
><TD CLASS="doc"
>split a version number into tokens
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:test_NumCharTok"
><A NAME="v%3Atest_NumCharTok"
></A
></A
><B
>test_NumCharTok</B
> :: <A HREF="Parsers-Version.html#t%3AVersionTok"
>VersionTok</A
> -&gt; Bool</TD
></TR
><TR
><TD CLASS="doc"
>simple function to test if an VersionTok data element
 is of type NumTok or CharTok
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:test_Revision"
><A NAME="v%3Atest_Revision"
></A
></A
><B
>test_Revision</B
> :: <A HREF="Parsers-Version.html#t%3AVersionTok"
>VersionTok</A
> -&gt; Bool</TD
></TR
><TR
><TD CLASS="doc"
>simple function to test if an VersionTok data element
 is of type Revision 
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:remove_trailing_zeros"
><A NAME="v%3Aremove_trailing_zeros"
></A
></A
><B
>remove_trailing_zeros</B
> :: [<A HREF="Parsers-Version.html#t%3AVersionTok"
>VersionTok</A
>] -&gt; [<A HREF="Parsers-Version.html#t%3AVersionTok"
>VersionTok</A
>]</TD
></TR
><TR
><TD CLASS="doc"
>remove trailing zeros from a list of NumToks
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A NAME="t:VersionTok"
><A NAME="t%3AVersionTok"
></A
></A
><B
>VersionTok</B
>  </TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
>keeps track of the token type in a version string
</TD
></TR
><TR
><TD CLASS="section4"
>Constructors</TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="arg"
><A NAME="v:NumTok"
><A NAME="v%3ANumTok"
></A
></A
><B
>NumTok</B
> ByteString</TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:Suffix"
><A NAME="v%3ASuffix"
></A
></A
><B
>Suffix</B
> <A HREF="Parsers-Version.html#t%3ASuffixChoice"
>SuffixChoice</A
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:Revision"
><A NAME="v%3ARevision"
></A
></A
><B
>Revision</B
></TD
><TD CLASS="rdoc"
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="section4"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:VersionTok')" ALT="show/hide"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:VersionTok" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
>Eq <A HREF="Parsers-Version.html#t%3AVersionTok"
>VersionTok</A
></TD
></TR
><TR
><TD CLASS="decl"
>Ord <A HREF="Parsers-Version.html#t%3AVersionTok"
>VersionTok</A
></TD
></TR
><TR
><TD CLASS="decl"
>Show <A HREF="Parsers-Version.html#t%3AVersionTok"
>VersionTok</A
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A NAME="t:SuffixChoice"
><A NAME="t%3ASuffixChoice"
></A
></A
><B
>SuffixChoice</B
>  </TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
>keeps track of the type of version suffix 
</TD
></TR
><TR
><TD CLASS="section4"
>Constructors</TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="arg"
><A NAME="v:Alpha"
><A NAME="v%3AAlpha"
></A
></A
><B
>Alpha</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:Beta"
><A NAME="v%3ABeta"
></A
></A
><B
>Beta</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:Pre"
><A NAME="v%3APre"
></A
></A
><B
>Pre</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:Rc"
><A NAME="v%3ARc"
></A
></A
><B
>Rc</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:P"
><A NAME="v%3AP"
></A
></A
><B
>P</B
></TD
><TD CLASS="rdoc"
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="section4"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:SuffixChoice')" ALT="show/hide"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:SuffixChoice" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
>Enum <A HREF="Parsers-Version.html#t%3ASuffixChoice"
>SuffixChoice</A
></TD
></TR
><TR
><TD CLASS="decl"
>Eq <A HREF="Parsers-Version.html#t%3ASuffixChoice"
>SuffixChoice</A
></TD
></TR
><TR
><TD CLASS="decl"
>Ord <A HREF="Parsers-Version.html#t%3ASuffixChoice"
>SuffixChoice</A
></TD
></TR
><TR
><TD CLASS="decl"
>Show <A HREF="Parsers-Version.html#t%3ASuffixChoice"
>SuffixChoice</A
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="botbar"
>Produced by <A HREF="http://www.haskell.org/haddock/"
>Haddock</A
> version 2.4.2</TD
></TR
></TABLE
></BODY
></HTML
>
